(function() {
	initBackReason();
	
	$("#resonid").change(function(){
		var reasonId=$(this).children('option:selected').val();
		if(reasonId!='99'){
			$("#resonRemark").attr("disabled", true);
		}else{
			$("#resonRemark").removeAttr("disabled");
		}
	}).change();
	
	$("#backCancel").click(function(){
		BootstrapDialog.closeAll();
	});
	
	$("#doBack").click(function(){
		doBack();
	});
})();

function initBackReason(){
	genDictSelect('conBackReasonInfo','resonid','1');
}